package demo3;

public class Test {
    public static void main(String[] args) {
        test1();
        test3();
    }
    public static void test1() {
        Box<Integer> box1 = new Box<>();
        box1.setContent(10);
        System.out.println(box1.getContent());
        System.out.println("============");
        Box<String> box2 = new Box<>();
        //box2.setContent(10);
        box2.setContent("World");
        System.out.println(box2.getContent());
    }
    public static void test3() {
        Box box = new Box(10);
        Box box2 = new Box("Hello");
    }
}
